package com.xzy.java.event;

import lombok.Getter;
import lombok.ToString;

import java.util.EventObject;

/**
 * @author xzy.xiao
 * @date 2023/3/14  9:56
 */
@Getter
@ToString
public class MyEventObject extends EventObject {

    private Object msg;

    public MyEventObject(Object source) {
        super(source);
    }

    public MyEventObject(Object source, Object msg) {
        super(source);
        this.msg = msg;
    }
}
